﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoboTrocity.Code.Items;

namespace RoboTrocity.Code.ObjectStates.ItemStates {
	class ScrapFreeState : ItemState {
		public ScrapFreeState(Scrap _item) 
			: base(_item, new Sprite("scrap")) {
			
		}

		public override void GetPickedUp(Player player) {
			player.setStat("scrapamount", player.getStat("scrapamount") + ((Scrap)AttachedItem).Amount);
			AttachedItem.CurrentState = AttachedItem.getState(typeof (ScrapCollectedState));
		}
	}
}
